package chapter2;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class Day03 {
    public static void main(String[] args) {
        Calendar calendar = new GregorianCalendar(2023, 9, 1,0,0,0);
        int day =  calendar.get(Calendar.DAY_OF_WEEK);
        String[] weeks = {"星期日","星期一","星期二","星期三","星期四","星期五","星期六"};
        System.out.println(weeks[day-1]);
    }
}
